﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Skecthial.UI.Tests
{
    public partial class TestPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                var accessToken = Context.Request["accessToken"];

                HttpCookie Cookie1 = new HttpCookie("TokenCookie");

                Cookie1.Values.Add("TOKEN", accessToken.ToString());
                Cookie1.Expires = DateTime.Now.AddMinutes(20);


                Response.Cookies.Add(Cookie1);

                Response.Redirect("http://127.0.0.1:3298/", false);

            }
            catch (Exception ex)
            {
                
                throw ex;
            }
        }
    }
}